package com.azzcs.gatewayservicealibaba.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory;
import org.springframework.stereotype.Component;

/**
 * @Author: wzg
 * @Date: 2021/2/23 下午9:39
 */
@Component
public class TokenGatewayFilterFactory extends AbstractGatewayFilterFactory<Object> {

    @Autowired
    private TokenGatewayFilter tokenGatewayFilter;

    @Override
    public GatewayFilter apply(Object config) {
        return tokenGatewayFilter;
    }
}
